package com.example.xiefeihong.chatroom.utils;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

/**
 * Created by xiefeihong on 17-10-10.
 */

public class NetworkChangeReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        if(!HttpUtils.isNetworkConnected()){
            HttpUtils.toastNetworkNotConnected();
        }
    }

}
